//
//  JiaoCollCell.m
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "JiaoCollCell.h"

@implementation JiaoCollCell


-(void)dealloc
{
    [_zi release];
    [_tupian release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.tupian = [[UIImageView alloc]init];
        [self.contentView addSubview:_tupian];
        [_tupian release];
        self.zi = [[UILabel alloc]init];
        [self.contentView addSubview:_zi];
        [_zi release];
    }

    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _tupian.frame = CGRectMake(0, 0, 111* KUAN, 111  *GAO);
    _zi.frame = CGRectMake(0, 50* GAO, 85 * KUAN, 30*GAO);
}

@end
